package com.hzw.saas.api.storage.constants;

import lombok.experimental.UtilityClass;

/**
 * 存储功能常量
 *
 * @author zzl
 * @since 02/25/2021
 */
@UtilityClass
public class StorageConsts {

    public static final String STORAGE_FILE_ROOT = "files";
    public static final String STORAGE_CACHE_ROOT = "cache";

    // 对外接口存储空间根目录ID: spaceId
    // 数据库中存储空间根目录ID：{ROOT_ID_PREFIX}{SPACE_ID}{ROOT_ID_FACTOR}{USER_ID}
    // 数据库中根目录ID前缀
    public static final String ROOT_ID_PREFIX = "ROOT-";
    // 数据库中根目录ID连接符
    public static final String ROOT_ID_FACTOR = "-";
    // 对外接口根目录展示名称
    public static final String ROOT_NAME = "ROOT";

    public static final String SHARE_LINK_PREFIX = "/share/";

}
